        <include file="Public:top_frame" />
        <!-- /section:basics/navbar.layout -->
        <div class="main-container" id="main-container">
            <script type="text/javascript">
                try {ace.settings.check('main-container' ,'fixed')}catch(e){}
            </script>

            <include file="Public:left_frame" />

            <!-- /section:basics/sidebar -->
            <div class="main-content">
                <div class="main-content-inner">
                    <!-- #section:basics/content.breadcrumbs -->
                    <div class="breadcrumbs" id="breadcrumbs">
                        <script type="text/javascript">
                            try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
                        </script>
                        <ul class="breadcrumb">
                            <li>
                                <i class="ace-icon fa fa-home home-icon"></i>
                                <a href="{:U('/index/index')}">首页</a>
                            </li>
                            <li>
                                <a href="{:U('/match/index')}">大赛管理</a>
                            </li>
                            <li class="active">添加种子选手</li>
                        </ul><!-- /.breadcrumb -->
                    </div>
                    <!-- /section:basics/content.breadcrumbs -->
                    <div class="page-content">
                        <div class="page-header">
                            <h1>
                                添加种子选手
                            </h1>
                        </div><!-- /.page-header -->
                        <div class="row">
                            <div class="col-xs-12">
                                <div class="widget-box">
                                    <div class="widget-body">
                                        <div class="widget-main">
                                            <!-- #section:plugins/fuelux.wizard -->
                                            <div id="fuelux-wizard-container">
                                                <form class="form-horizontal" id="validation-form" enctype="multipart/form-data" method="post" action="{:U('/match/doSeedAdd')}"}>
                                                    <input type="hidden" id="match_id" name="match_id" value="{$match_id}" />
                                                    <div class="form-group">
                                                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="name">* 姓名:</label>
                                                        <div class="col-xs-12 col-sm-8">
                                                            <div class="clearfix">
                                                                <input type="text" id="name" name="name" class="col-xs-12 col-sm-5"/>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="space-2"></div>

                                                    <div class="form-group">
                                                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="phone">* 电话:</label>

                                                        <div class="col-xs-12 col-sm-8">
                                                            <div class="clearfix">
                                                                <input type="text" id="phone" name="phone" class="col-xs-12 col-sm-5" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="space-2"></div>

                                                    <div class="form-group">
                                                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="seed">* 头像:</label>
                                                        <div class="col-xs-12 col-sm-9">
                                                            <div class="clearfix">
                                                                <div class="col-xs-6 col-sm-3">
                                                                    <input type="file" name="seed" class="id-input-file"/>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="space-2"></div>

                                                    <div class="form-group">
                                                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="introduce">* 介绍:</label>
                                                        <div class="col-xs-12 col-sm-9">
                                                            <div class="clearfix">
                                                                <textarea id="introduce" name="introduce" rows="5" cols="62"></textarea>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </form>
                                            </div>
                                            <div class="clearfix form-actions">
                                                <div class="col-md-offset-3 col-md-9">
                                                    <button class="btn btn-info" type="button" id="data_submit">
                                                        <i class="ace-icon fa fa-check bigger-110"></i>
                                                        提交
                                                    </button>
                                                    &nbsp; &nbsp; &nbsp;
                                                    <button class="btn" type="reset" id="data_back">
                                                        <i class="ace-icon fa fa-undo bigger-110"></i>
                                                        返回
                                                    </button>
                                                </div>
                                            </div>
                                        </div><!-- /.widget-main -->
                                    </div><!-- /.widget-body -->
                                </div><!-- PAGE CONTENT ENDS -->
                            </div><!-- /.col -->
                        </div><!-- /.row -->
                    </div><!-- /.page-content -->
                </div>
            </div><!-- /.main-content -->
            <include file="Public:footer" />
        </div><!-- /.main-container -->
        <!-- basic scripts -->
        <!--[if !IE]> -->
        <script type="text/javascript">
            window.jQuery || document.write("<script src='__PUBLIC__/admin/assets/js/jquery.js'>"+"<"+"/script>");
        </script>
        <!-- <![endif]-->
        <!--[if IE]>
        <script type="text/javascript">
            window.jQuery || document.write("<script src='__PUBLIC__/admin/assets/js/jquery1x.js'>"+"<"+"/script>");
        </script>
        <![endif]-->
        <script type="text/javascript">
            if('ontouchstart' in document.documentElement) document.write("<script src='__PUBLIC__/admin/assets/js/jquery.mobile.custom.js'>"+"<"+"/script>");
        </script>
        <script src="__PUBLIC__/admin/assets/js/bootstrap.js"></script>

        <!-- page specific plugin scripts -->
        <script src="__PUBLIC__/admin/assets/js/fuelux/fuelux.wizard.js"></script>
        <script src="__PUBLIC__/admin/assets/js/jquery.validate.js"></script>
        <script src="__PUBLIC__/admin/assets/js/additional-methods.js"></script>
        <script src="__PUBLIC__/admin/assets/js/bootbox.js"></script>
        <script src="__PUBLIC__/admin/assets/js/jquery.maskedinput.js"></script>
        <script src="__PUBLIC__/admin/assets/js/select2.js"></script>

        <!-- ace scripts -->
        <script src="__PUBLIC__/admin/assets/js/ace/elements.scroller.js"></script>
        <script src="__PUBLIC__/admin/assets/js/ace/elements.colorpicker.js"></script>
        <script src="__PUBLIC__/admin/assets/js/ace/elements.fileinput.js"></script>
        <script src="__PUBLIC__/admin/assets/js/ace/elements.typeahead.js"></script>
        <script src="__PUBLIC__/admin/assets/js/ace/elements.wysiwyg.js"></script>
        <script src="__PUBLIC__/admin/assets/js/ace/elements.spinner.js"></script>
        <script src="__PUBLIC__/admin/assets/js/ace/elements.treeview.js"></script>
        <script src="__PUBLIC__/admin/assets/js/ace/elements.wizard.js"></script>
        <script src="__PUBLIC__/admin/assets/js/ace/elements.aside.js"></script>
        <script src="__PUBLIC__/admin/assets/js/ace/ace.js"></script>
        <script src="__PUBLIC__/admin/assets/js/ace/ace.ajax-content.js"></script>
        <script src="__PUBLIC__/admin/assets/js/ace/ace.touch-drag.js"></script>
        <script src="__PUBLIC__/admin/assets/js/ace/ace.sidebar.js"></script>
        <script src="__PUBLIC__/admin/assets/js/ace/ace.sidebar-scroll-1.js"></script>
        <script src="__PUBLIC__/admin/assets/js/ace/ace.submenu-hover.js"></script>
        <script src="__PUBLIC__/admin/assets/js/ace/ace.widget-box.js"></script>
        <script src="__PUBLIC__/admin/assets/js/ace/ace.settings.js"></script>
        <script src="__PUBLIC__/admin/assets/js/ace/ace.settings-rtl.js"></script>
        <script src="__PUBLIC__/admin/assets/js/ace/ace.settings-skin.js"></script>
        <script src="__PUBLIC__/admin/assets/js/ace/ace.widget-on-reload.js"></script>
        <script src="__PUBLIC__/admin/assets/js/ace/ace.searchbox-autocomplete.js"></script>

        <!-- inline scripts related to this page -->
        <script type="text/javascript">
            jQuery(function($) {

                $('.nav-list li').removeClass('open').removeClass('active');
                $('#left_2').addClass('open').addClass('active');
                $('#left_2_1').addClass('active');

                $('#data_submit').on('click', function() {
                    // 姓名
                    var name = $('#name').val();
                    if (name == '') {
                        alert('姓名不能为空');
                        return;
                    }
                    // 电话
                    var phone = $('#phone').val();
                    var regex = /^1[3,5,7,8]{1}[0-9]{9}$/;
                    if (phone == '') {
                        alert('电话不能为空');
                        return;
                    } else if (!regex.test(phone)) {
                        alert('电话格式正确');
                        return;
                    }
                    // 介绍
                    var intro = $('#introduce').val();
                    if (intro == '') {
                        alert('介绍不能为空');
                        return;
                    }
                    $('#validation-form').submit();
                });

				$('#data_back').on('click', function() {
                    history.back();
				});

                $('#modal-wizard-container').ace_wizard();
                $('#modal-wizard .wizard-actions .btn[data-dismiss=modal]').removeAttr('disabled');

                $(document).one('ajaxloadstart.page', function(e) {
                    //in ajax mode, remove remaining elements before leaving page
                    $('[class*=select2]').remove();
                });
            });
        </script>
    </body>
</html>